package com.example.administrator.swredeem.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;

import com.example.administrator.swredeem.R;
import com.example.administrator.swredeem.appBase.Config;
import com.example.administrator.swredeem.beanClass.UserListBean;
import com.example.administrator.swredeem.net.HttpXutils;
import com.example.administrator.swredeem.net.MyCallback;
import com.example.administrator.swredeem.utils.LiveDataBus;
import com.example.administrator.swredeem.view.adapter.UserListAdapter;

import java.util.HashMap;
import java.util.Map;

import butterknife.BindView;
import butterknife.ButterKnife;

public class RechargeICActivity extends AppCompatActivity {

    @BindView(R.id.recharge_et)
    EditText rechargeEt;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_recharge_ic);
        ButterKnife.bind(this);

    }

    public void goRecharge(View view) {
        Intent intent = new Intent(RechargeICActivity.this, RechargeActivity.class);
        intent.putExtra("qureyid", rechargeEt.getText().toString().trim());
        if (!TextUtils.isEmpty(rechargeEt.getText().toString().trim())) {
            startActivity(intent);
        }else {
            Toast.makeText(RechargeICActivity.this,"请输入户号",Toast.LENGTH_SHORT).show();
        }

    }

}
